var swfu;
$(function(){
	var settings = {
			flash_url : "swfupload/swfupload.swf",
			flash9_url : "swfupload/swfupload_fp9.swf",
			upload_url: "upload",
//			post_params: {"PHPSESSID" : "<?php echo session_id(); ?>"},
			file_size_limit : "100 MB",
			file_types : "*.*",
			file_types_description : "�����ļ�",
			file_upload_limit : 100,
			file_queue_limit : 0,
			custom_settings : {
				cancelButtonId : "btnCancel",
				progressTarget : "fsUploadProgress"
			},
			debug: false,

			// Button settings
			button_image_url: "swfupload/XPButtonUploadText_61x22.png",
			button_width: "80",
			button_height: "22",
			button_placeholder_id: "spanButtonPlaceHolder",
			button_text: '<span class="theFont">��Ӹ���</span>',
			button_text_style: ".theFont { font-size: 12; }",
			button_text_left_padding: 4,
			button_text_top_padding: 3,
			
			// The event handler functions are defined in handlers.js
			swfupload_preload_handler : preLoad,
			swfupload_load_failed_handler : loadFailed,
			file_queued_handler : fileQueued,
			file_queue_error_handler : fileQueueError,//ѡ���ļ������
			file_dialog_complete_handler : fileDialogComplete,//ѡ����ļ���
			upload_start_handler : uploadStart,
			upload_progress_handler : uploadProgress,
			upload_error_handler : uploadError,//�ϴ�ʧ��
			upload_success_handler : uploadSuccess,//�ϴ��ɹ�
			upload_complete_handler : uploadComplete,//�ļ��ϴ�����
			queue_complete_handler : queueComplete	// Queue plugin event
		};
	swfu = new SWFUpload(settings);
});
